Skip to content

Commit 4a8516a

Browse files
Merge pull request pradanvirudhunagar#33 from Churchill427/main
SQL:land_ownership_for_plantation_farm_pond
2 parents 4ffc689 + 220365f commit 4a8516a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
const [rows] = await connection.execute(`
2+
SELECT
3+
ownership AS landOwnershipType,
4+
well_irrigation AS hasWell,
5+
area_irrigated AS areaIrrigated,
6+
irrigated_lands AS irrigatedLandCombined,
7+
patta AS pattaNumber,
8+
total_area AS totalArea,
9+
taluk,
10+
firka,
11+
revenue AS revenueVillage,
12+
crop_season AS cropSeasonCombined,
13+
livestocks AS livestockCombined
14+
FROM farm_pond_details
15+
WHERE id = ?
16+
`, [2]);
17+
18+
19+
20+
21+
22+
const [rows] = await connection.execute(`
23+
SELECT
24+
ownership AS landOwnershipType,
25+
well_irrigation AS hasWell,
26+
area_irrigated AS areaIrrigated,
27+
irrigated_lands AS irrigatedLandCombined,
28+
patta AS pattaNumber,
29+
total_area AS totalArea,
30+
taluk,
31+
firka,
32+
revenue AS revenueVillage,
33+
crop_season AS cropSeasonCombined,
34+
livestocks AS livestockCombined
35+
FROM plantation_details
36+
WHERE id = ?
37+
`, [3]);

0 commit comments

Comments
 (0)