Thank you for the reply. A co-worker was able to free up some time and help me out with this. I am familiar with the CASE syntax just wasn't successful in making it work. But, this is what we came up with, we also added a little more information to the query.
select
s.ProjectID...
I'm not sure how to go about this. In my tbl_Project_Employee below I have 4 dummy records. I need a query that selects where the employee_type_id = 48 if it exists; otherwise I select where the employee_type_id = 22. I've shown below the table what my results should be.
tbl_Project_Employee...
I have a table called rpt_sp_category with the following columns: sponsor, dept_cd, subproject_id, fao_id, fund, agency, orgn, cnt_fund_groups, avail_appr, expenses, spending_plan
My problem is the rpt_sp_category will have duplicate records where the cnt_fund_groups > 1, but I only want to...
Is there a way to increment a number by date resetting on an id column. For example:
Table1
ContID Visit Date
145 1 01/01/2016
145 2 01/25/2016
145 3 02/01/2016
150 1 02/15/2016
150...
In this example, I have 3 contracts/projects. The first one has 3 funding sources (Agcy 2207, 2307 & 6207), the second one has only one funding source (Agcy 2207), the third has 2 funding sources (Agcy 2207, 2307). I only want the contract/projects with Agcy 2207 or 2307 (SPID 238.001 &...
I have one table with all available funding agencies. I also have a contracts table. I could have one contract with funding from multiple agencies such as 607, 207 or 307. What I need to find is which contracts are being funded ONLY by agency 207. How would I write this?
Thanks,
Sherry
Using CF8. I'm creating a report using cfdocument what will export as a PDF. I want the report to look like the following:
Vendors Within the City
comm_cd sub-heading
vendor Name address loc_code
vendor Name address loc_code
comm_cd sub-heading
vendor Name...
I'm using CF8.
I have the following partial query -
<cfquery dbtype="query" name="getVendor">
select distinct
vendor,
loc_code
from
variables.savedlist
</cfquery>
I'm using this query in a cfdocument pdf type report. I need to loop thru this query and look for where the...
I need to create mailing/address labels. There will be multiple addressees and most likely mutiple pages using Avery 5160. We are using coldfusion 9 as the front end and oracle as the backend. My thought is to use an avery 5160 template which I found on the web, insert text fields for the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.