...the SQL Query Tool that was designed with you in mind
Get Productive Today!
Home | Product Features | Screenshots | Videos | Download\Purchase | Support Forum | About

Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
auto-complete on derived tables
cwbowman Offline
#1 Posted : Thursday, July 22, 2010 1:10:32 PM
Rank: Newbie

Medals:

Groups: Member
Joined: 6/23/2010
Posts: 7
Location: East Lansing, MI

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
This one is 'pie-in-the-sky' so if you ignore it, I understand.

But, I am not aware of an SQL tool that does this...

It would be nice if in the following query:

select count(a.account_number) totalaccounts,
sum(case when emails = null then 1 else 0 end) noemail,
sum(case when emails >=1 then 1 else 0 end) anemail,
sum(case when emails =2 then 1 else 0 end) twoemail,
sum(case when emails >2 then 1 else 0 end) threeormoreemail
from notedb..note_master a
join notedb..note_status b on b.note_status_id = a.note_status_id
join relm..pool c on c.pool = a.pool
Join alloc_balance_table d on a.account_number = d.account_number
left join ( select z.account_number, count(y.purchaser_email_id) emails
from notedb..purchaser_note z
join purchaser_email y on z.purchaser_id = y.purchaser_id
where y.active=1
group by z.account_number
) e on e.account_number = a.account_number
where c.servicing_type_id not in (2,3,4,5)
and b.note_status_master_id in (3,4)
and d.allocation_type_id = 199
and d.balance > 100

It would be nice if the auto-complete would understand the derived table (alias e).

This isn't a big deal, and to a casual reader it probably sounds like even less of a deal, but it is a bit of a distraction when you are used to the auto-suggest popping up each time and then it doesn't, it kind of hampers the rhythm.

Like I said, this is very pie-in-the-sky, but I thought I would bring it up.



Sponsor  
 
Werysoft's QweryBuilder
bradwery Offline
#2 Posted : Thursday, July 22, 2010 4:21:44 PM
Rank: Administration

Medals:

Groups: Administration
Joined: 2/5/2009
Posts: 84
Location: Manitoba, Canada

Thanks: 0 times
Was thanked: 3 time(s) in 3 post(s)
This would probably be a tough one to develop. Let me think about this.
Brad Wery
Lead Architect
emitch Offline
#3 Posted : Tuesday, August 03, 2010 7:01:38 AM
Rank: Member

Medals:

Groups: Member
Joined: 12/31/2009
Posts: 21

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I'd like this too, but yeah, I can see how it might be difficult.
Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 RC1 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.569 seconds.
Copyright © 2008-2010 Werysoft Inc. All rights reserved.
SQL Query Tool | SQL Editor | Database Development Tool | SQL References | Testimonials