Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Matching data from two tables using simple query.

$
0
0
I have two tables i write a query to get datas from first table where 'empid' is matching with second table.

Table name 1:tblBillPay_details
Table name 2:tblBillPayViewID

Query is:
SELECT          tblBillPay_details.*
FROM            tblBillPay_details INNER JOIN
                         tblBillPayViewID ON tblBillPay_details.EmpID = tblBillPayViewID.Allviewid
WHERE        (tblBillPayViewID.Allviewid = '00174')

00174 is the empid here.

It must be a simple solution but here the query fetches nothing.

Advance thanks for help.

Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>