Skip to content

Database in WPF and Windowformapps

I’m developing applications using either WPF or WindowFormApps that can store and manage database. The question is that how can i create an in-app database or which kind of database should I use that can run whenever I install it on other devices. My application cannot run on other devices since there i…

how to iterate through geojson elements

i want to execute the code in this question https://gis.stackexchange.com/questions/142391/storing-geojson-featurecollection-to-postgresql-with-postgis/142479#142479 but when i run the app i receive the following error: please let me know how to fix it. code: attempts: Answer From the database perspective the…

Oracle SQL: Case statement

I am not sure where to put the case statement whether in select or where clause. I am trying to get data from table c when cnt_subj = MEPC_PL then metric_id will be equal to 6135 from table m. Can anyone help? Thank you in advance! 🙂 Answer I think this is the query you are looking for: Do you

SQL – Using CASE statement with multiple IS NULL, IS NOT NULL

I’m having difficulties writing a case statement with multiple IS NULL, NOT NULL conditions. I have the case statement below, however the third condition (WHEN ID IS NOT NULL AND LABEL IS NULL THEN TITLE) does not seem to be recognised. When Label is null, the statement does not pick up title. Is there …

How can I compare rows of two similar tables in SQL?

These TSQL tables are exact but I can’t guarantee that. I cannot guarantee which rows will be non-existent in either table. What I want to be able to do is to subtract one from the other into a new table. For instance, “Agg Asslt” should have a column value for “OffenseCount” of …

SQL fill in redundant values to table

I want to take the following table… City Company Revenue New York A 400 New York B 300 Singapore B 400 Washington D.C. C 400 London D 400 and produce the below version. City Company Present …