Skip to content

Commit b90db97

Browse files
committed
corrected_query_fetching_post.sql
1 parent 8f39d0a commit b90db97

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sql_queries/fetch_query_post.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const query = `
1919
form_lands.total_area
2020
FROM
2121
forms
22-
JOIN
22+
LEFT JOIN
2323
form_lands ON forms.id = form_lands.form_id
24-
JOIN
24+
LEFT JOIN
2525
files ON forms.id = files.form_id
2626
WHERE
2727
forms.form_type = 1
@@ -56,9 +56,9 @@ const query = `
5656
plantation_details.tot_price
5757
FROM
5858
forms
59-
JOIN
59+
LEFT JOIN
6060
plantation_details ON forms.id = plantation_details.form_id
61-
JOIN
61+
LEFT JOIN
6262
files ON forms.id = files.form_id
6363
WHERE
6464
forms.form_type = 3
@@ -89,9 +89,9 @@ const query = `
8989
farm_pond_details.total_est
9090
FROM
9191
forms
92-
JOIN
92+
LEFT JOIN
9393
farm_pond_details ON forms.id = farm_pond_details.form_id
94-
JOIN
94+
LEFT JOIN
9595
files ON forms.id = files.form_id
9696
WHERE
9797
forms.form_type = 2

0 commit comments

Comments
 (0)