Skip to content
Advertisement

Tag: database

Combine two different rows in single table using same table in SQL Server

Consider a database table holding data like that: Id UserId IsCheckIn DateTime Image AccountId 30356 60866 1 2020-12-19 12:17:17 b622f3e0806f.jpg 10017 30355 60866 0 2020-12-19 10:52:26 b622f3e0806f.jpg 10017 30354 60866 1 2020-12-19 10:51:02 b622f3e0806f.jpg 10017 30353 60866 0 2020-01-20 09:29:42 1596.jpg 10017 Desired output : Id UserId IsCheckIn InDateTime InImage AccountId IsCheckOut OutDateTime OutImage 30356 60866 1 2020-12-19 12:17:17 b622f3e0806f.jpg

Data Structure for One Entry with Unknown Number of Tags

Noob here. I am trying to create a class or data structure where each entry has one unique name and an unknown number of descriptive tags. I’d like the data structure to be something I could also easily export to some common format (I am guessing that CSV would not be able to do what I am asking since I

Advertisement