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

How to get the last 6 of a field?

Status
Not open for further replies.

dndaughtery

Programmer
Jan 25, 2006
67
US
I have a field that I need to get the last 6 digits of. How can I do this?
 
try

Code:
Select
Right(mycolumn, 6)
From MyTable

Shoot Me! Shoot Me NOW!!!
- Daffy Duck
 
You say digits - if its an integer field then you could use

select myfield % 1000000


Hope this helps

[vampire][bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top