|
Since you don't have a clue "what" you are converting, the VB forum is the place to start. Bye.
|
|
|
|
|
I have the following SQL Server query:
requirements SUM and GROUP column SOLUONG AS SL , if TRAHANG = true then bring positive column opposite quantity quantity column value is negative, no team and no columns SL sum is, if I would give TRAHANG column in the SELECT statement error. Can you help me ?
[CODE]
//Query warning eror
SELECT TABHDBHCT.MAVACH_SP, TABHDBHCT.TENSP, SUM(TABHDBHCT.SOLUONG)*CASE WHEN [TRAHANG] = 0 THEN 1 ELSE -1 END AS SL
FROM TABHDBHCT INNER JOIN
TABHDBH ON TABHDBHCT.MASOPHIEU = TABHDBH.IDSOPHIEU
WHERE (TABHDBH.TTTHANHTOAN = 1 OR
TABHDBH.TTTHANHTOAN = 2) AND (TABHDBH.NGAY BETWEEN '11/01/2016' AND '11/30/2016')
GROUP BY TABHDBHCT.MAVACH_SP, TABHDBHCT.TENSP
ORDER BY TABHDBHCT.TENSP;
[/CODE]
|
|
|
|
|
No, because that means nothing to me.
Perhaps instead of a query that you don't explain - so we have no idea if it does what you want, or if not what it does wrong - you could give us examples of your input and what you expect as an output.
And then explain what the query does that you didn't expect or doesn't do that you did.
But most important of all is that this has nothing at all to do with C# - it's an SQL problem and shouldn't be here at all, regardless of how well or badly you try to explain it.
I'd suggest that you post here: Ask a question[^] and give sample data and a good explanation when you do.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
It looks like you're trying to do the calculation outside the SUM aggregation but it isn't included in the GROUP BY clause.
Try something like
SELECT TABHDBHCT.MAVACH_SP,
TABHDBHCT.TENSP,
SUM(TABHDBHCT.SOLUONG * CASE WHEN [TRAHANG] = 0 THEN 1 ELSE -1 END) AS SL
...
|
|
|
|
|
Running OK, Thank you very much
|
|
|
|
|
How to set the password in setup file
|
|
|
|
|
|
I use a property grid to set and display a button's properties, I want to get the file name when I changed the button's background image. how to override the click event when click the open button of a popup file selection diaolg?
|
|
|
|
|
|
I can't save any changes to the text file settings.txt , but reading the file works.
The code is
private async void LedShow_Loaded(object sender, RoutedEventArgs e)
{
var path = @"settings.txt";
var folder = Windows.ApplicationModel.Package.Current.Installed Location;
var file = await folder.GetFileAsync(path);
var lines = await Windows.Storage.FileIO.ReadLinesAsync(file);
sliderDelay.Value = Convert.ToInt32(lines[0]);
textBlockDelayValue.Text = lines[0] + " seconds";
buttonSave.IsEnabled = false;
}
and the error message is
An exception of type 'System.UnauthorizedAccessException' occurred in System.Private.CoreLib.dll but was not handled in user code
Access is denied. (Excep_FromHResult 0x80070005) occurred
Can someone help me?
|
|
|
|
|
This would be right. A program normally does not have rights to write to the Program Files folder. In order to do so, you will need to elevate the rights of the application and gain administrative privileges.
The recommendation would be to use the AppData folder. Your best option would be to try and read the file from that location, and if not there, then copy it from the program files folder. Then you can read and write the file to your heart's content.
Cheers,
Mick
------------------------------------------------
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.
|
|
|
|
|
I can not compress.I will be mad.I am not good in c#.This is my senior project.Please any body contact with me.İf you want help me please write maila address and ı will send mail my problem with my project
|
|
|
|
|
Yeah, that's not going to happen. Nobody is going to do your work for you.
The entire point behind this project is to demonstrate what YOU have learned over these courses, not what begging skills you have.
|
|
|
|
|
Now I need to know how to compress bmp image with huffman if you dont help me why do you write ?
|
|
|
|
|
Because that's NOT what your "question" said. All it said was "send me your email address...". THAT isn't going to happen.
Why do you need someone to do your research for you? There is a ton of information on the web about compressing data with Huffman. All you have to do is Google for "compress data with huffman" and you'll find everything you need.
|
|
|
|
|
Still you repeat same things!!!!!!!!!!
I know huffman algorithm ı also coded huffman algorithm .But
BMP is image ı dont have any information about image.AL info about text.
|
|
|
|
|
If you REALLY knew Huffman, you'd know that you can use it no differently to compress the bytes from ANY file as easily as you feed Text bytes to it.
|
|
|
|
|
ı know huffman ı reliazed with c# for text but image is problem for me?image int not as text ?
|
|
|
|
|
You've been given EVERYTHING you need to fix this yourself, REPEATEDLY, and yet you insist on ignoring that.
We're not the ones with the problem.
|
|
|
|
|
|
Because you dont know how to help !
|
|
|
|
|
Rıza Berkay Ayçelebi wrote: how to help
You can't help someone that refuses to listen to what people tell them.
Speed of sound - 1100 ft/sec
Speed of light - 186,000 mi/sec
Speed of stupid - instantaneous.
|
|
|
|
|
I can send you my project .I knwo huffman ı coded this algorithm.But ı didnt compress BMP could you show me how ı can compress bmp file
|
|
|
|
|
Rıza Berkay Ayçelebi wrote: I can send you my project
Ah ha! Now it makes some sort of sense. You have mistaken us for some "do my homework assignment for me" web site. No, we are not here to do your work for you. You would need to go to a web site where you can hire a programmer to do your work for you.
Speed of sound - 1100 ft/sec
Speed of light - 186,000 mi/sec
Speed of stupid - instantaneous.
|
|
|
|
|
just you can show me for image why dont want help me
|
|
|
|