CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 microsoft SQL help...

Print topic Send  topic

Author Message
rookie
Posted: 09/02/2004, 9:25 AM

how can I join similar rows in one, I have a view that presentes multiple rows that are exactly the same, how can I do to group them in one...?
DonB
Posted: 09/02/2004, 12:54 PM

That is the function of the SELECT DISTINCT - the SQL thus selects only the
different rows, discarding the duplicates. Microsoft Access implements
SELECT DISTINCT ROW, too, which I believe checks the entire table row for
duplication, regardless of what columns are listed in the SELECT.

--
DonB

http://www.gotodon.com/ccbth


"rookie" <rookie@forum.codecharge> wrote in message
news:641374983e11fb@news.codecharge.com...
> how can I join similar rows in one, I have a view that presentes multiple
rows
> that are exactly the same, how can I do to group them in one...?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Benjamin Krajmalnik
Posted: 09/02/2004, 9:09 PM

Sometimes select distinct can be cumbersome when many joins are performed.
In these cases you can override the SQL and write something like:

Select t1field1, t1field2, t1field3 from table1
where exists (select t2field1 from table2 where t2field1 = t1field1) and
exists (select t3field1 from table3 where t3field1 = t1field1)

and so on.

This would show you the distinct rows equivalent to an inner join.
"rookie" <rookie@forum.codecharge> wrote in message
news:641374983e11fb@news.codecharge.com...
> how can I join similar rows in one, I have a view that presentes multiple
rows
> that are exactly the same, how can I do to group them in one...?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.