Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: alapatis
  • Order by date
  1. alapatis

    SQL query for duplicate value in one table

    SELECT firstname,age FROM empinfo GROUP BY age HAVING (COUNT(age) > 1)
  2. alapatis

    why can't I do this?

    plz try this.. SELECT COURSENUM,COUNT(*) AS NumberOfScience FROM Enrolls WHERE COURSENUM = 605;
  3. alapatis

    sql newb - creating tables

    u can use alter table command to set primary key to Cust_id iff the field has no duplicate data
  4. alapatis

    Table intersection?

    u had 3 join attributes... u should write an inner join for all these 3 colums... if u have primary key in 1 table and forign key in another table...u can simply applyinner join on key column only.
  5. alapatis

    Question about a query

    select Num from table where Num = (select ID from Num where Num = 0 ) in this case the sub query should result a single ID.(according to query) select ID from table where Num IN (select ID from table where Num = 0 ) in this case the sub query should result multiple IDs. (So it works fine)

Part and Inventory Search

Back
Top