jamespakorn / jamespakorn/hdc-sql
bmi_3034
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```sql
SET @prov_c := '14';
SET @id:= '13';
SET @b_year:='2017';
SET @start_d:=concat(@b_year-1,'1001');
SET @end_d:=concat(@b_year,'0930');
DROP TABLES IF EXISTS tmp_ncdscreen;
CREATE TABLE IF NOT EXISTS tmp_ncdscreen (error_code varchar(255) DEFAULT NULL, KEY(cid)) ENGINE=MyISAM AS(
SELECT SQL_BIG_RESULT
n.*,p.CID,null as error_code
FROM
ncdscreen n left join person p ON n.HOSPCODE=p.HOSPCODE AND n.PID=p.PID
WHERE DATE_SERV BETWEEN @start_d AND @end_d
);
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue only provides a SQL snippet for the bmi_3034 query; no repository file, test, or entry point is named. Start by locating this query in the repository and verify its intended behavior and execution errors, then define the required correction and a reproducible check for the completed result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100