Microsoft
Software
Hardware
Network
Question : SQL Server error in query
I get an error below for the querry here, any idea for this error here
Select null, enc_nbr, billable_timestamp, guar_id, guar_type, row_timestamp,
(SELECT 'Y' FROM accounts a, accounts_budget ab WHERE pe.guar_id = a.guar_id and
a.acct_id = ab.acct_id and ab.active_ind = 'Y' and ab.budget_type = 'P')
as perpet_budget_ind, enc_status, enc_id, billable_timestamp, location_id, location_id, enc_nbr,
(SELECT DISTINCT 'Y' FROM accounts a, accounts_budget ab, budget_members bm
WHERE pe.guar_id = a.guar_id and a.acct_id = ab.acct_id and ab.active_ind = 'Y'
and ab.budget_type = 'N' and ab.budget_id = bm.budget_id and bm.source_id = pe.enc_id)
as nonperpet_budget_ind from patient_encounter pe where practice_id = '0002' AND
person_id = '39FC54A5-DAC1-45C9-2DAE64
B04528' AND billable_ind = 'Y' order by 2 DESC, 3 DESC,
create_timestamp DESC
the error i get is :-
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
Answer : SQL Server error in query
If you're installing from a disc, try copying the contents onto hard drive and run from there, as disc or drive maybe failing or bad.
Random Solutions
Cable Type/Pinout for RJ45 to RJ45 T1/E1 between two routers
ASP - Deleting multiple records
MailChimp WordPress Plugin Embedded styles display: none; hiding form, Part 2
HP Desktop memory
Powershell, get-qadcompter
Converting latitude and longitude to cartesian coordinates on a conic map
creating user in default DB (from Login creation)
namespace question
Oeacle Storeage of word, pdf, excel documents in
How to activate OCR fonts on OTC850 Dot Matrix Printer?