Category "select"

SQL- all rows which are present in all years

I have the following columns in my DB Codes year | code | ---------------- 2009 | 10001 | 2009 | 10002 | 2009 | 10003 | 2010 | 10001 | 2010 | 1000

Get first day of sequence SQL

I would like to get first day of continuous date sequence. Query is valid for one month. I am using SQL Server 2014. Table example: Id | VechicleISO | RideISO |

command to select faces based on a uv shell in Maya

I am trying to figure out a command / code to be able to select all faces on a given UV Shell on a polygon. I have tried various flags of polySelect and related

Node Js sequelize select query by month

Am new in Node Js, In my Node Js project am using sequelize ORM with MySql database. This is my query i want to write select query by month. This is my query

Blazor: How to use the onchange event in <select> when using @bind also?

I need to be able to run a function after a selection in made in a <select>. The issue is I'm also binding with @bind and I get a error when I try to use

Why would hibernate not close its session after select query?

When calling the following method 10 times there are 11 open sessions on the database: public void readHsql() { SessionFactory sessionFactory = getSessi

pymysql just select value and save into variable

cursor.execute("SELECT price FROM tabel WHERE id = 1600") print cursor.fetchone() gives me the output {u'price': u'4345.6'} how can I select just the value

How to left_join() two datasets but only select specific columns from one of the datasets?

Here are two datasets: (this is fake data) library(tidyverse) myfruit <- tibble(fruit_name = c("apple", "pear", "banana", "cherry"), number

How to use "invalid-feedback" class with selectpicker from Bootstrap-Select?

I'm using Bootstrap to do some form validation on my web app. With a normal select menu, it would be really easy to have an error message pop-up when the field

SQL using table from join in subqueries

I am writing a query to be used as databases view, it looks now like this: SELECT contact.*, contact_users.names AS user_names, contact_status.status_

How to choose a weighted random array element in Javascript?

For example: There are four items in an array. I want to get one randomly, like this: array items = [ "bike" //40% chance to select "car" //30%

How to display old value in dropdown on edit form then keep the selected value when the form submit failed?

The dropdown's option values were shown from a table on the database. When I clicked "Edit Form," the old values were successfully shown. For example, the optio

How to customise React AsyncSelect style

I am trying to customise the style of AsyncSelect component, but seems not able to do it. import AsyncSelect from 'react-select/async'; <AsyncSelect classN

Getting the median value from the database

A median is defined as a number separating the higher half of a data set from the lower half. Query the median of the Northern Latitudes (LAT_N) from STATION an

Dynamic where condition LINQ

I have a problem with my code. I don't know how I can insert in my selection all equals conditions of: codicielementipartizione.sezione == el[i].ToString() d

Selecting Multiple rows in Excel using VBA

I am trying to process some rows in a sheet with VBA. I want to cut and paste a set of rows from one sheet to the other and struggling to work out the code I ne

How can I select :last-child in d3.js?

I need to manipulate the text elements of the first and last tick of an axis to bring them more towards the center. I am trying to select them, one at the time

sqlite: select display few rows around matching rows

I have a table of the form select rowid,* from t; rowid f ----- ----- 1 aaa 2 bbb 3 ccc 4 ddd 5 eee 6 fff 7 ggg 8 aaa 9 bbb

DB2 SQL Statement WHERE clause CASE WHEN in multiple conditions

This is what I am trying to do: SELECT id, name FROM users WHERE isActive=true (AND CASE WHEN {param} != null THEN name={param} ELSE null E

Select option from dropdown menu with PHP and mySql

I tried to create a simple select dropdown menu from MySQL database. However, it does not work on my code. Here is my code: <?php