Reason for using Excel as db - is this excel (.xlsm) contains more than 50k records and while reading the excel process scope it is taking more than 6-10 mins read
SELECT * FROM [SheetName$A6:Z] WHERE [PEACCM] = 12 AND [PEACCD] = 31
=> Replace [SheetName] with the name of your worksheet.
=> A6:Z specifies the range of cells to query. Adjust the range according to your data.
=> PEACCM and PEACCD are assumed to be column headers. Make sure they match the actual column headers in your Excel file.
=> The condition WHERE [PEACCM] = 12 AND [PEACCD] = 31 filters the rows based on the values in columns PEACCM and PEACCD.