SQL Queries Questions and Answers

Recent IT Questions

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

SQL query for same phone number

I have 3 columns phone number, users and locations I would like to see only the name and phone numbers of the users that are calling the same phone number Not quite sure how to represent this in a SQL Statement Thank you very much for your assistance

View Answer   |  Mar 8 2009  1:07 PM GMT
SQL, SQL queries, SQL Query
asked by Iamnfo

  5 pts.

Looping Queries in Oracle using data from SQL Server

I have a table of entries from SQL server called PID. Each of this entry should follow the following select * from HR.TABLES a START WITH a.SID = '0' CONNECT BY PRIOR a.parentid = a.sid' Where I have '0' in the query above, should take all the values from PID. Is there a easy way to write this?...

View Answer   |  Feb 28 2009  4:05 PM GMT
Oracle queries, SQL Server connectivity, SQL queries
asked by Sreedhar77

  5 pts.

SQL Server 2005 query to get the average

Hi, I'm using MSSql 2005 on Windows 2003 Server. I need some assistance to write a query to get the average of two columns and write the value to a third coulmn. All the transactions is in one table. Basically it is column 1 + column 2 devide by two = column 3 Thank you, George

View Answer   |  Feb 24 2009  5:43 AM GMT
SQL queries, SQL Server 2005, Windows Server 2003
asked by GPNel2006

  75 pts.

Finding the number of rows of all tables of a user/schema in Oracle

how can i know all the table names along with the no. of rows they contain for a user/scema in oracle 9i through sql? plz answer ......

View Answer   |  Feb 22 2009  7:16 PM GMT
Oracle 9i, Oracle SQL, SQL queries
asked by Chrishram

  15 pts.

SQL query and Oracle database design help needed

Sorry for all the confusion with the questions.So let me clear myself,i am doing this not as assignment or homework,but something which interests me and trying to leran.Earlier as I stated that its a part of my school(** well frnakly speaking, it was my plan if i could put this as an item of the...

Answer Question   |  Feb 22 2009  6:22 AM GMT
SQL, Oracle SQL, SQL queries
asked by Rohit3312

  25 pts.

How can I select unique records from Access based on two criteria

I need to do the following: SQL = "select amount, count(amount) from table1 group by amount having count(*) =1" This returns all unique records, but I need to add another criteria to that statement ie: I need to select all unique records only if a second value is met as well! This is what I had...

View Answer   |  Feb 20 2009  1:08 AM GMT
SQL, SQL queries, Microsoft Access
asked by Grantp

  40 pts.

Crystal Reports last twelve months

I wrote a report that accululates invoice totals for each customer in a sql database based on period and year for period. I manually entered the last 11 months in the formulas by taking current month minus 1, then current month plus 10, year minus one and so forth. How can I make this process...

View Answer   |  Feb 7 2009  10:00 PM GMT
Crystal Reports, SQL Database, SQL queries
asked by Dunbar

  5 pts.

SQL Server Query Help Needed

I have a table with Inventory transacation records. The table contains both Shipment (outgoing) and Receiving (incoming) transactions. I'm trying to write a report that lists both Sales Orders that result in Shipment records and Purchase Orders that result in Receiving records. If I link the...

View Answer   |  Feb 5 2009  10:39 PM GMT
SQL Server Query, SQL queries, SQL Query
asked by Arlin

  70 pts.

MS SQL query to update a table with the last entry in another table.

Hi, Could anyone please assist. I'm trying to update a Reporting Table with the last entry in another table. I've tried to arrange the table according to the ID row. This works great. Then the query to get the last entry woks as well, but to get the two to work together and update the table is...

View Answer   |  Jan 19 2009  11:14 AM GMT
SQL, Query, SQL Query
asked by GPNel2006

  75 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.

How to check the existence of a Column in SQL Server 2000?

- using SQL Server 2000 , Would like to know how to check any specific column exist in a database. Any method to search through the list of tables in a database. Thanks.

View Answer   |  Jan 9 2009  9:30 AM GMT
SQL Server 2000, SQL Server 2000 queries, SQL queries
asked by Hunkgym

  5 pts.

Correct Isolation level for SQL2005 Subscriber.

Hello, I'm specifying a SQL 2005 Enterprise back-end to an OLTP application which has one main DB (200GB, could grow to 600GB), a subset of which will be replicated to a separate subscriber for running read-only queries. Here's the spec, any comments appreciated, especially around the use of read...

asked by SuperCoolMoss

  140 pts.

Query performance and tuning

Hi, I wanted know as to what I can do to my query so that it improves in performance.RIght now it it taking 3-4 hrs because of the large no of records in the DB.If i remove the group by and order by clause for the same no of records it is fast but when it does sorting it hangs.But I need to do the...

View Answer   |  Dec 21 2008  9:34 AM GMT
SQL, SQL performance, SQL statements
asked by Mingley

  5 pts.

oracle 9i instalation

hello guys I have recently started learning SQL and I am trying to install 9i (database or software where I can practice SQL quires). Long time ago I started learning SQL on that time it was personal oracle7 I installed and used to do my practice...but now I have heard that you can install 9i on...

View Answer   |  Oct 1 2008  8:38 PM GMT
SQL, Oracle 9i, Oracle installation
asked by 11g

  5 pts.

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