We help IT Professionals succeed at work.
Get Started

Separate query list

Allen Pitts
Allen Pitts asked
on
318 Views
Last Modified: 2012-08-14
Good afternoon expert,

A query has been written and works. Would like the procedures returned by the first
two qualifiers (the two that end in 59618') and 74%') to be listed before the procedures returned by the second two qualifiers (the two that end in 59614') and 73%'))

Can that be done?

Thanks.

Allen in Dallas


select * from PXC_Procedure_code where
(PXC_TYPE = 'CPT' and PXC_CODE in ('59510', '59618')
OR
PXC_TYPE = 'ICD9' and PXC_CODE like '74%')
OR
(PXC_TYPE = 'CPT' and PXC_CODE in ('59400', '59409', '59410', '59610', '59612', '59614')
OR
PXC_TYPE = 'ICD9' and (PXC_CODE like '72%' or  PXC_CODE like '73%'))
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2012
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE