inner Join or self query -
i have table 3 columns
column 1 called uri values : 1,2,3,4,5,6, column 2 called record type values : box, folder, box, folder, item, folder column 3 called parent uri values : 0,2,0,4,4,1
basically table has information record number ( uri),what ? box, folder or item ( record type) , , uri of container ( parent uri)
so ideally item should exist in folder , folder in box. , there cases record orphan
need write query can show in perhaps 4 columns
uri, record type, parent uri, , parent uri record type
i think can done because row like
3,box, 5 means record number 3 box , parent 5. there exist row have 5 uri , record type , parent.
help regards
Comments
Post a Comment