General Chat Thread, Creating a report in OpenOffice for PyKota in General; I'd like to make a pretty report in OpenOffice to shame staff that print ridiculous amounts and other reports to ...
-
8th August 2007, 05:01 PM #1 Creating a report in OpenOffice for PyKota
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)???
-
-
IDG Tech News
-
9th August 2007, 11:48 AM #2 Re: Creating a report in OpenOffice for PyKota
-
-
9th August 2007, 12:49 PM #3 Re: Creating a report in OpenOffice for PyKota
Hmm something like
Select * from usernames where username not like '%0'
Assuming all the user names you dont want begin with a 0.
-
-
9th August 2007, 01:25 PM #4 Re: Creating a report in OpenOffice for PyKota

Originally Posted by
ChrisH 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
-
-
9th August 2007, 01:49 PM #5 Re: Creating a report in OpenOffice for PyKota
Code:
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
-
-
9th August 2007, 03:21 PM #6 Re: Creating a report in OpenOffice for PyKota
I was close enough tbh
-
-
9th August 2007, 03:38 PM #7 Re: Creating a report in OpenOffice for PyKota

Originally Posted by
ChrisH I was close enough tbh

Except the % was in the wrong place
-
-
9th August 2007, 05:22 PM #8 Re: Creating a report in OpenOffice for PyKota

Originally Posted by
Ric_ 
Originally Posted by
ChrisH I was close enough tbh

Except the % was in the wrong place

Pfft details tbpfhomgkthanksbye
-
SHARE:
Similar Threads
-
Replies: 70
Last Post: 13th November 2009, 02:51 PM
-
By CyberNerd in forum Educational Software
Replies: 7
Last Post: 12th April 2007, 09:45 AM
-
Replies: 5
Last Post: 8th March 2007, 11:06 AM
-
Replies: 5
Last Post: 28th January 2007, 07:00 PM
-
By CyberNerd in forum Educational Software
Replies: 1
Last Post: 13th December 2006, 12:28 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules