SQL Tables Questions and Answers

Recent IT Questions

21 - 38 of 38
<<PREVIOUS 1|2 NEXT>>

Running .NET Code to manipulate sql tables

is it possible to retrieve a table using .NET code manipulate in code e.g calculating formulas based on values stored in table retrieved and then pivoting it in code and putting it back into another table

Answer Question   |  Feb 12 2009  8:52 PM GMT
SQL Server 2005, .NET, SQL tables
asked by Ankur771

  5 pts.

A Smart Developer

I have been out of touch from VB Programming for a long long time. In front of me is a task and I am ambitious about doing it in a quick & smart way. I work for a small businessman (a shop keeper) who buys Steel wireropes from wholesalers & sells it as a retailer. Currently he has a manual (cash...

View Answer   |  Jan 14 2009  6:29 PM GMT
VB 6.0, SQL Server 2005, BAS Modules
asked by AmjadM

  15 pts.

Duplicating records in a table with a SQL query

How can I duplicate every record in a table with a query in SQL?

View Answer   |  Jan 14 2009  4:54 PM GMT
SQL tables, SQL queries, Duplicate records
asked by SQL Server Ask the Experts

  2445 pts.

Find Next SQL AutoNumber

Hi, I was wondering if there is a way to find the next autonumber in a SQL table before inserting the record? I tried just looking at the previous number and adding one but if I delete the last record then this wouldn't work or if I delete all the records then the number won't be 1. Any...

View Answer   |  Jan 8 2009  6:14 PM GMT
SQL, SQL tables, SQL AutoNumber
asked by RoadDust

  390 pts.

Is there a way to retrieve datatypes from stored procedures?

I have used the following simple query to retrieve datatypes from sql 2000 tables. select TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH from <tablename>.information_schema.columns where table_name = '<tablename>' and column_name = '<columnname>' Is there a...

View Answer   |  Jan 6 2009  8:34 PM GMT
Stored Procedures, SQL tables, SQL 2000
asked by TlogP

  15 pts.

merging 2 rows into 1 row

Hi , i have 2 tables table a m_id name 1 abcd 2 bcde table b m_id id org_name ind_name 1 1192 gold coast 1 1193 fred 2 1196 greg 2 1198 TechTronics i am now generating the report through a sql query whose output shud be id...

Answer Question   |  Dec 17 2008  5:48 PM GMT
SQL tables
asked by Taffer23

  5 pts.

ExcelSource file - metadata validation

I need some assistance. I am using an excel file to import data to SQL tables. The problem I am running into is having to replace the metadata of the output columns with the metadata of the external columns. I do not want to do this manually everytime. [The metadata of the following output...

Answer Question   |  Dec 5 2008  4:44 PM GMT
Microsoft Excel, SSIS, SQL tables
asked by Mayre

  5 pts.

SQL Find a number between the given ranges of number / Find a row which has range of given number

I am facing a problem in MSSQL: - I have a table in MSSQL, which has 10 rows & 5 columns. In this table I am maintaining a numeric range in 2 columns. First one has starting number & second column has end number. All rows have unique values in these 2 columns. For Ex.: - In first row the value in...

View Answer   |  Dec 5 2008  2:53 PM GMT
SQL, MSSQL, SQL tables
asked by Bsethi24

  5 pts.

Adding columns and updating a SQL table in a reporting database-

My SQL table contains about 80 columns; it is a reporting database, so I update this table data daily from an application database. I need to add 20 more columns, but when I add for the present job, it is not completing. The present job logic is using a permanent table to get all the records at a...

View Answer   |  Nov 21 2008  8:01 PM GMT
SQL Server database, SQL tables, SQL Server tables
asked by SQL Server Ask the Experts

  2445 pts.

SQL query to select highest test score

I am writing a sql to bring someone's highest test score into a table. The sql is bringing in the highest test score possible, rather than the person's test score. I assume MAX is making that happen. If I take MAX out, it returns the single row subquery returns more than one row error. What can I...

View Answer   |  Nov 18 2008  11:42 PM GMT
SQL, MAX, SQL Query
asked by Cmyers

  40 pts.

sql table in rpg

I need to read an sql table (file) in rpg and select certain records. I'm pretty green in sql. Anyone have a sample they could share? I'am better at rpg than ile., but I'll take what I can get. Thanks

View Answer   |  Nov 14 2008  6:21 PM GMT
SQL, RPG, SQL tables
asked by Brenger

  165 pts.

Need SQL query

Hi, I have a emp table in which I have 7 columns and hiredate is one of the columns. I need to query for the hiredate which has maximum number of employees joined the company on a particular date?

View Answer   |  Oct 30 2008  8:37 AM GMT
SQL Query, SQL tables, SQL development
asked by Kirankg

  5 pts.

How to create a temporary table in sql 2005 via SSIS

I need to load a flat file into a temporary table. So I need to know how to step by step how to in SSIS "Data Flow Task" create a temporary table, load one col from the flat file to the temporary table along with the date it was loaded. I will then use the temporary table to delete from another...

View Answer   |  Oct 1 2008  8:55 PM GMT
SSIS, Flat files, SQL 2005
asked by NewBee7

  105 pts.

Linking to a table in SQL with Visual Basic

How could I link to a table in SQL using Visual Basic?

View Answer   |  Sep 23 2008  6:12 PM GMT
Visual Basic, SQL, SQL tables
asked by SQL Server Ask the Experts

  2445 pts.

Creating a table with three fields in SQL

I need to make a table with these fields: prof_name varchar2(20) subject_code varchar2(5) dept varchar2(5) The constraint on this table is that one professor can take, at most, two subjects. This means that the name of the professor appear, at most, two times in the prof_name column. How could...

View Answer   |  Sep 16 2008  6:32 PM GMT
SQL tables
asked by SQL Server Ask the Experts

  2445 pts.

Maintaining a company table in SQL

I am not sure if I should mix budget data and sales data in one table in SQL or separate it. Also, if I add descriptors into the table, this will only increase record sizes and reduce the value of caching by padding each record out with repeated data. Is using small descriptor tables at run time...

View Answer   |  Sep 9 2008  7:56 PM GMT
SQL, SQL tables
asked by SQL Server Ask the Experts

  2445 pts.

Retrieving values from a table in SQL

I have values stored in a table in SQL this order: -99.4%, 99.5%, -99.6%, -99.7%, 99.8%, 99.9% I'd like to retrieve them in this order: -99.4%, -99.6%, -99.7%, 99.5%, 99.8%, 99.9% The ORDER BY clause does not do so. Is there another clause I could use?

View Answer   |  Aug 18 2008  6:47 PM GMT
SQL, SQL tables
asked by SQL Server Ask the Experts

  2445 pts.

How do i replace a sql tables field value with another value

I have the following script that works in Access but not in sql. I trying to replace the the value in the field "RSAMSTORE" with another value I give it (i.e. 999994, etc.) when the data is displayed. In otherwords when the select distinct is ran instead of seeing the value in the table...

View Answer   |  Jul 28 2008  7:18 PM GMT
SQL, SQL scripts, SQL tables
asked by Ilfoprog

  30 pts.

21 - 38 of 38
<<PREVIOUS 1|2 NEXT>>