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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Query Help

Status
Not open for further replies.

WallyByGolly

Programmer
Joined
Jan 29, 2009
Messages
1
Location
US
Table Strucure: 2 columns...1 labeled Part Number and the other Serial Number.

Part Number column has duplicate part numbers and non duplicate serial numbers... example:
PN SN
123456 1
123456 2
654321 1

I have fallen and bumped my head.
What is SQL query that will return all Serial Numbers for a Given Part number....to late in the day to think
 
Select * From MyTable Where PN = 123456

This qry will return all rows of MyTable where PN = 123456, i.e.

PN SN
123456 1
123456 2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top