General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SPT Combination Query
Environment versions
Network:
Windows 2008 Server
I have a table with recordnumber, goodparts, badparts.
I need to know how many records there are for each goodparts and badparts.
Right now I run one query for each.
Select Count(recordnumber) As r1 From myTable Where goodparts > 0
Select Count(recordnumber) As r1 From myTable Where badparts > 0
How can I combine these two querys together to try and save processing time.
The SPT table I am accessing is db2.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only