[Solved] Validating xml via xsd

Thanks a lot, problem was – I can’t create xsd with above xml, please help me to create it. Answers were – use another version, it was created and then deleted, encoding is wrong. I found the answer myself, I needed just headings which are usually put above the xml. That much. solved Validating xml … Read more

[Solved] remove duplicate records – mysql

for remove duplicate records, use this query DELETE n1 FROM news n1, news n2 WHERE n1.id < n2.id AND n1.itemId = n2.itemId AND n1.tag_id = n2.tag_id AND n1.tag_id IS NOT NULL solved remove duplicate records – mysql

[Solved] Selecting the right column

Both. In some rows, t2.number is number and in others t3.number is number. The result of the union all in a single result set. The result set doesn’t know the origin of the values in any particular column (although you could include another column with this information). 3 solved Selecting the right column

[Solved] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE `id` [closed]

you should surround your variable with quotes ”, simply change to WHERE `id` = ‘” .$id.”‘”) As suggested you can’t use WHERE in INSERT queries but you should use an UPDATE query so you syntax should look like this: $result = mysql_query(“UPDATE cafes set deal=”$deal” WHERE `id` = ‘” .$id.”‘”) or die(mysql_error()); Then I would … Read more

[Solved] SQL Server Rounding issue

First check datatypes: SELECT ‘0.458441’, system_type_name FROM sys.dm_exec_describe_first_result_set(N’SELECT 0.458441′, NULL, 0) UNION ALL SELECT ‘10.000000’, system_type_name FROM sys.dm_exec_describe_first_result_set(N’SELECT 10.000000′, NULL, 0) UNION ALL SELECT ‘5.000000’, system_type_name FROM sys.dm_exec_describe_first_result_set(N’SELECT 5.000000′, NULL, 0); ╔═══════════╦══════════════════╗ ║ value ║ system_type_name ║ ╠═══════════╬══════════════════╣ ║ 0.458441 ║ numeric(6,6) ║ ║ 10.000000 ║ numeric(8,6) ║ ║ 5.000000 ║ numeric(7,6) ║ ╚═══════════╩══════════════════╝ Query … Read more

[Solved] Why do Parameterized queries allow for moving user data out of string to be interpreted?

Compiled queries use special syntax that the database understands. They usually add placeholders for parameters such as in: select * from applicant where name = ? select * from applicant where name = :name The exact syntax depends on the specific technology: JDBC, ODBC, etc. Now, once those queries are sent to the database (without … Read more

[Solved] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘,,,)’ at line 1 [closed]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘,,,)’ at line 1 [closed] solved You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use … Read more

[Solved] sql server select statement for 3 tables using join [closed]

how about this query : select top 3 Package_Title, DurationInDays,Package_Image_1, Adult_Price , STUFF((Select themes.theme + ‘,’ From package_theme inner join themes on themeid = package_theme.theme Where package_theme.package = packages.Package_ID FOR XML PATH(”)),1,1,”) As theme from packages inner join rates on rates.package = packages.Package_ID 5 solved sql server select statement for 3 tables using join [closed]

[Solved] Receive an unexpected symbol error in my PLSQL query [closed]

You appear to have an extra quote in your query. The following should work for you: vSQl := ‘select toValueText(a.code, a.descr) from (select currency_code code, des1 descr ‘||’from sy_curr_code ) a ‘; Note the quote before your closing parenthesis has been removed. 1 solved Receive an unexpected symbol error in my PLSQL query [closed]

[Solved] How to import JPEG file in MS SQL server? [closed]

You probably want to use the binary, varbinary or varbinary(max) data type. Of course, you have to convert the (JPEG) image to a byte array first in order to store it in the database. Depending on the programming language of your choice this can be easy or hard. Not sure if you can read files … Read more