Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Query to get the last added record in a table for a particular id

$
0
0
T

Hi,

I have 2 tables A, B

Table A has id,name

Table B had parentid(foreignkey referring to ID in above table), record_type,created_timestamp

I want to get the last added record_type from Table B for all the ids present in Table A.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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