Jump to content

Recommended Posts

Posted

I'd like to make a pretty report in OpenOffice to shame staff that print ridiculous amounts and other reports to show other things.

 

I think that I can figure out the report business and I have created a DSN to connect to the PyKota database. My problem is that I only want to look at staff so I need to create a clever query.

 

I need to select only the rows where the username does not begin with a digit. How do I do this (either in Design view or SQL view)???

Posted

Hmm something like

 

Select * from usernames where username not like '%0'

 

Assuming all the user names you dont want begin with a 0.

Posted
Hmm something like

 

Select * from usernames where username not like '%0'

 

Assuming all the user names you dont want begin with a 0.

 

Some start with a 6 :p

Posted

SELECT "username", "balance" FROM "public"."users" WHERE ( ( "username" NOT LIKE '0%' AND "username" NOT LIKE '6%' ) ) ORDER BY "username" ASC

 

That was what I wanted ;)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...