Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 1 to 2 of 2 total |
Parametized or Dynamic "Group By" |
Thu, Jul 30 2009 8:05 PM | Permanent Link |
"Gregory Sebastian" | Hello,
Is there a way to code a different "Group By" depending on the value of a parameter. For example when :My_PARAM = 1 then Group By Col1. When :My_PARAM = 2 Then Group By Col2 etc. I have seen examples for SQL Server when I google it but these codes don't work on DBISam. Does DBISam have an implementation for this ? I know that I can dynamically construct it in Delphi using the SQL.ADD but I would prefer to do it within the SQL text property with the use of Parameters if possible. Regards Gregory Sebastian DBISam 4.27 |
Fri, Jul 31 2009 12:26 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Gregory,
<< Is there a way to code a different "Group By" depending on the value of a parameter. >> No, parameters can only be used in joins or the WHERE clause. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Tuesday, April 30, 2024 at 03:55 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |