Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

SQL Query

Hey Experts!
I need to write a SQL query to filter out some records. I need all records that start with "MED" and are 8 characters long.
 
something along the lines of:
 
select * from TABLE where len(RECORD) = 8 and Begins with "MED"
 
Urgent! Thanx!!!

Open in new window

0
calbackup
Asked:
calbackup
  • 3
1 Solution
 
Pratima PharandeCommented:
select * from TABLE where len(RECORD) = 8 and RECORD like '%MED?%'
0
 
Pratima PharandeCommented:
select * from TABLE where len(RECORD) = 8 and RECORD like 'MED%'
0
 
Pratima PharandeCommented:
RECORD is nothing but you filed name that you want to check for length and start characters
0
 
calbackupAuthor Commented:
Thanx dude! worked like a charm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now