[Solved] How get data in split string data for SQL Server [closed]

[ad_1] And yet another variant SELECT * FROM [table] WHERE ‘,’+[data]+’,’ LIKE ‘%,E55555,%’ The problem though, is that what you are asking for won’t be able to use normal indexes, which means an inefficient table scan every time you query. You may want to consider breaking the comma delimited values into their own columns so … Read more

[Solved] please tell me why this query not working

[ad_1] The error arises from a simple typo. You have spaces added to the value passed for the Sid condition. However your query should be rewritten in this way string cmdText = “select Count(*) from [user] where Sid=@sid and password=@pwd”; SqlCommand cmd = new SqlCommand(cmdText, cnn) cmd.Parameters.AddWithValue(“@sid”, textBox1.Text); cmd.Parameters.AddWithValue(“@pwd”, textBox2.Text); int count = Convert.ToInt32(cmd.ExecuteScalar()); if … Read more

[Solved] How to do a group by query in c++

[ad_1] You are selecting columns, like FN, SN and Caps. I suppose that if you group by Team, at least one of those columns have more than one value in at least a group. [ad_2] solved How to do a group by query in c++

[Solved] Class toggle in jQuery

[ad_1] Fix the toggleClass call, you only need the class name, not the selector: toggleClass(‘over’) instead of toggleClass(‘p.over’). Then, you have two opening script tags: <script type=”text/javascript” language=”javascript”> <script> Remove the first one. Next, you’re binding an event listener to an element that’s not in the DOM yet at the time the script executes. Simple … Read more

[Solved] C++ Functions run no matter input

[ad_1] Your if statements have more entries then a teenage girls phone. 🙂 You should invest in some structures, containers and loops. For example: const static std::string question_words[] = {“am”, “are”, “can”, “did”, “could”, “do”, “does”}; const static unsigned int word_quantity = sizeof(question_words) / sizeof(question_words[0]); //… bool is_question = false; for (unsigned int i = … Read more

[Solved] How to Adding values of two dimnetional array in php [closed]

[ad_1] Use EXPLODE inside foreach <?php $yourArr = array(‘2,3′,’2,3’); $a = 0; $b =0; foreach ($yourArr as $temp) { $tempnew = explode(“,”,$temp); $a += $tempnew[0]; $b += $tempnew[1]; } echo “a = “.$a.”<br>”; echo “b = “.$b; ?> 1 [ad_2] solved How to Adding values of two dimnetional array in php [closed]

[Solved] Find next Aloha Number

[ad_1] Despite my comment above, I wondered about the “time and space complexity”. It turned out to be trivial; this only takes 3 long integer variables and a single loop over each input digit (which can be incremented by this algorithm to use 1 more digit; and this will not cause an integer overflow). Starting … Read more

[Solved] Java replace with regex [closed]

[ad_1] It is as simple as: “The Shawshank’s Redemption”.replaceAll(“\\S”, ” _”); We replace all non white-space characters \S with an underscore followed by a space. This would automatically make what is a space originally, 2 spaces. Note that a trailing space will be produced. 2 [ad_2] solved Java replace with regex [closed]

[Solved] HTML CSS layout pushing elements down the page [closed]

[ad_1] As usual, Flexbox is our lord and saviour. Here’s your layout made with Flex. .container { width: 500px; height: 250px; display: flex; border: #00f solid 2px; } .container .side { border: #ff0 dashed 3px; flex-basis: 33%; flex-shrink: 0; /* Prevents shrinking if .four grows */ display: flex; flex-direction: column; justify-content: space-between; /* Ensures perfect … Read more

[Solved] Default method parameters [closed]

[ad_1] In c# 4 and above you can specify default values for parameters, so it’s not necessary to specify them at the call site: public void DoIt(string text = “”) { //do something with text //do other things } and then you can call it either passing a parameter, like this: DoIt(“parameterValue”); or without passing … Read more

[Solved] pattern drawing programming logic [closed]

[ad_1] A C++ implementation : Without any formatting void print(int n) { for(int i=n, cl=1, cr=n*n+1; i>0; cl+=i, –i, cr-=i) { for(int j=0; j<i; ++j) cout << cl+j; for(int j=0; j<i; ++j) cout << cr+j; cout << endl; } } With dashes and stars void print(int n) { for(int i=n, cl=1, cr=n*n+1; i>0; cl+=i, –i, … Read more