Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:57 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Group the results of a query
PostPosted: May 22nd, 2009, 10:19 am 
Offline

Joined: September 8th, 2007, 2:05 pm
Posts: 7
Hi, I want to show the results of a query but I dont want to repeat the results with the same name. In sql you can use something like GROUP BY, but it is not working in my script. Any idea?

Thanks and sorry for my english.

Louri


Top
 Profile  
 
 Post subject:
PostPosted: May 22nd, 2009, 12:11 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Louri,

Check your syntax. It's a good idea to test your SQL statement outside of Opus if you are new to DB and SQL. If it works directly, I find it easy then to copy the proven sql statement into OpusScript (between quotemarks).

When you start working with Opus variables inside the SQL statement, it is simply a matter of using the '+' operator for concatenation of the strings and the variables. There are several examples if you do a search on the forum.

Your question seems to be specifically on SQL and its capabilities?
viewtopic.php?t=3005&highlight=sql+syntax

For some tutorials on sql, try these:
http://www.java2s.com/Code/Oracle/CatalogOracle.htm
http://www.1keydata.com/sql/sql.html

The 'group by' option in SQL is usually applicable if you are working with numeric values which are summarized in some way, or you want to output some specific formatting for a report. You don't give much info on the specifics. Hope that helps.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 49 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group