Questions tagged [select]

Select is a common keyword used to query data. 'select()' is also a programming function for triggering code based on file handle or other system activity. Do not use this tag for questions related to: HTML <select> tag (use [html-select]); language integrated query such as LINQ or similar, etc.

Filter by
Sorted by
Tagged with
0 votes
1 answer
16 views

mysql join by using select have where with master column

select t.* from ( SELECT p.* ,b.id as brand ,b.name as brandname ,j.id as closed ,c.name as customername ,l.name as productline ,u.user_name as username ,...
mohamed elghamry's user avatar
0 votes
0 answers
4 views

Activerecord select and distinct

What is the preferable way to use distinct with select in rails? Model.select(:column).distinct OR Model.select('DISTINCT column') I checked and the sql generated by both is same, so can they be ...
Ashu Chauhan's user avatar
1 vote
1 answer
49 views

How to Change Text Field Selection Color in Flutter

I'd like to create a text field in Flutter where, when I select a portion of the text and press a button, only the selected part changes its color, for example, to red. Moreover, if another section of ...
Mohammad Hosseini's user avatar
0 votes
1 answer
31 views

SQL SELECT where multiple columns contain any part of submitted string

Expanding on this thread which is not exactly what i'm after - SQL SELECT WHERE field contains words I have a Name field for someone to enter full name (first name and last name) but MySQL database ...
Adey's user avatar
  • 5
0 votes
0 answers
18 views

Select tag in Angular not showing Placeholder when adding *ngFor

The placeholder suddenly disappears when I add a for loop to my select options. This code will show the placeholder: <div class="col-md-12 col-sm-6" *ngIf="businessForm"> ...
User9123's user avatar
  • 685
0 votes
0 answers
15 views

How to set width in MenuItem material-ui

I'm just starting my adventure with react. I tried to use select with material-ui, but now I run into a wall. My select has a certain width and when MenuItem has a short content then the dropdown ...
pearowaty's user avatar
0 votes
3 answers
45 views

How to go through each of the entry for a particular ID in the table and classify the IDs?

I would like to go through all the IDs and classify each ID as Car only, Bike only, both, and ignore anything with truck. In the end I would like to see only one ID with specific Product_category. ...
Nithin Gowda's user avatar
0 votes
2 answers
24 views

Select data based on priority using 2 tables in SQL Server

I'm a beginner in SQL. I need to select distinct data (Subject, UserNo) ordering by columns Subject, UserNo according to the priority conditions below. Conditions: Select (Subject, UserNo) that has ...
ally's user avatar
  • 1
-1 votes
1 answer
45 views

Error when using 'Case' with a Select statement [closed]

Need to change the query output of a column based on the information in that column. Current information in Table AA: ID1 ID2 ID3 ID4 ID5 ID6 ID7 10 11 12 2 14 15 16 20 21 ...
GB1975's user avatar
  • 1
-1 votes
0 answers
21 views

Executing select query in redshift stored procedure

I am trying to fetch records from a table using redshift stored procedures, but it's just executing and not showing any data, so is there any way to fetch data? CREATE OR REPLACE PROCEDURE dbo....
Chetan Patil's user avatar
0 votes
1 answer
34 views

WordPress (WooCommerce): Using SELECT to get order_total for 30 days (Getting total revenue amount)

I have a code that suppose to connect to WordPress database and get _order_total from shop_order (WooCommerce Plugin) for custom date. Here is my function: <?php function get_total_income_a(){ ...
TLP Masih's user avatar
  • 290
0 votes
1 answer
30 views

How to Handle multiple duplicate records in one column by populating the values in second column with same name?

enter image description here In the table , I have multiple records like of the movie name Adalat and the genre for 3 is different and one is null. I want to populate the empty place with the Genre of ...
SUMANDEEP's user avatar
0 votes
2 answers
95 views

1 query to select multiple rows in the same table but in different category

I have a PHP script that use 4 separate query to read the last 25 rows from one single mysql table (so a total of 100 rows). Example: SELECT * FROM table WHERE datetime <= 'xxx' AND name = 'john' ...
ipel's user avatar
  • 1,328
-1 votes
0 answers
19 views

empty value not appear when load select php [closed]

I added an empty default value before loading the items from the database, but it does not appear on the page. What could the problem be? <?php include('config.php'); if (!$con) { die('Could ...
rcweb's user avatar
  • 63
0 votes
0 answers
10 views

Populate ACF 2nd select field in a repeater based from 1st select field value ID

I am trying to populate Select#2 based from value of Select#1. But I could not get the selected value id on select#1 both are in a repeater. This will be in the admin page. function ...
user4103074's user avatar
0 votes
3 answers
55 views

how to filter dataset faster instead of individually doing using for loop for large dataset

I have two dataset: one is a position vector called "positionchr" and other is a dataframe called "interaction region" dput(positionchr[1:]) c(71526L,124659L, 144370L, 125121L) ...
Rhea Bedi's user avatar
  • 125
0 votes
0 answers
10 views

Using CONCAT with / on a SELECT query MySQL 8

I am trying to add a missing character to a partial subset of a column. The correct format for the start of the column value is AB1234- Some records are a missing the hyphen I can find those records ...
Brian Milnes's user avatar
0 votes
0 answers
40 views

How to correctly check that the table contains both values in ABAP?

I have a code in which I use the check_adr method to check if the selected address is in the table. The following logic occurs inside the check_adr method: Obtaining the value of the addrnum_dd, ...
Alexander Chebotarev's user avatar
0 votes
0 answers
7 views

How to check if a value exists in first or second table?

I have two tables and both tables have a field with the same name (mobile). I want to make sure that neither table contains the value. I want to know how many rows the phone has in either table. my ...
rcweb's user avatar
  • 63
-1 votes
0 answers
33 views

MySQL use ORDER BY, LIMIT and ORDER BY at the end of projection

I'm using MySQL and I'd like to run a query on a table containing a date field and a value. To keep things simple, here's the creation code (this is an example): CREATE TABLE my_table( pull_date ...
Tancelin MAZZOTTI's user avatar
0 votes
1 answer
25 views

Coverting JDE Julian Date to Calendar Date within a select statement

I have tried so many of the answers from other similar questions and I'm still getting nowhere. I have a select statement where I am trying to convert a JDE Julian date (6 digit) to a normal calendar ...
Mindbender's user avatar
1 vote
1 answer
22 views

Karate : check if an element is located below an other

I have this html : <div> <div> <select attribute = "first select"> <option1></option> <option1></option> </select> &...
Andrei Vartic's user avatar
0 votes
3 answers
75 views

Grouping date periods in SQL Server

I run this query in SQL Server: select personeel_nummer as employee_number, vanaf_datum as from_date, tot_datum as until_date from personeel_kenmerken where personeel_nummer = ...
Laurens Wolf's user avatar
0 votes
2 answers
30 views

Remove all variable rows if a condition is not met, otherwise, keep all rows

Example data: name <- c("A","A","A","B","B","C","C","C","D","D","D","D") year ...
MintySusan's user avatar
0 votes
1 answer
43 views

onchange function is not getting called Select-Javascript [closed]

When I change the Option in Select the onchange function is not called. I created a onchange function for Select . When I change the Option from Fronend HTML the onchange function is not triggered. I ...
Udayarajan gauthaman's user avatar
1 vote
1 answer
36 views

Is it possible to get current selected text in Playwright JS select dropdown?

I can set value in the select dropdown. But when I call textContent, it returns all options values. My task is to verify that the set value is selected properly by extracting the value and checking it....
Mukha's user avatar
  • 143
0 votes
0 answers
9 views

How to make product catalog paging visible to SE crawlers if it is done using SELECT and JS?

I have a product catalog site. Each category of products has many pages. Paging is done using SELECT tag with onChange event. It calls JS function which manipulates current URL and sets window....
Artem Kuchin's user avatar
-1 votes
3 answers
66 views

New to SQL. ORDER BY, DESC and LIMIT query

Beginner in SQL and I want to return the top 200 results from a specific column and keep all the rows in order. Is this correct SELECT * Column name FROM Table name ORDER BY DESC LIMIT 200 As ...
stax6557's user avatar
1 vote
1 answer
38 views

cypress select with error message Timed out retrying after 4000ms: cy.select() failed because it could not find a single <option> with value

using Cypress for a test script I can not for what ever reason select a year. A very simple task. The threads on cypress / select I found did not help me so far. HTML part: <select id='actual_year'...
pixelhead's user avatar
-1 votes
0 answers
29 views

Need suggestion on trigger

I have table called articles with following structure CREATE TABLE `articles` ( `ProductID` int(11) NOT NULL, `Name` varchar(1000) DEFAULT NULL, `Active` tinyint(1) DEFAULT NULL, `UserID` int(...
Ganesh's user avatar
  • 23
0 votes
0 answers
12 views

variant ="outlined" input doesn't set label label gap correctly

there is no gap when I set to select variant="outlined" enter image description here there is a component: return ( <Fragment> <FormControl fullWidth variant="...
Max Kipish's user avatar
-1 votes
1 answer
49 views

Want to select multiple Columns but group By only 1 Column

I having total 4 columns in Select query. Year, Net Value, Development Cost & Maintenance Cost. From these 4 columns Net Value & Development Cost is calculated using SUM() method but ...
Sumeet Kumar's user avatar
0 votes
1 answer
40 views

Getting "( unexpected" syntax error - Script works in one instance but not another [duplicate]

#!/bin/bash PS3="Select an install package: " items=("Essentials - VLC" "Graphics Suite - Inkscape, GIMP, Blender" "Streaming Suite - OBS, Openshot, ...
AJSarley223's user avatar
0 votes
0 answers
33 views

SELECT Statement from YAML used in Java input returns empty resultset from Oracle

I have the following YAML specification for a JAR I am using. The YML is input for a JAR I don't have control, it's a black-box for me. My DEV has tested the very same input SELECT against his Oracle ...
René Guido Steg's user avatar
0 votes
2 answers
62 views

SQL Snowflake: Value does not show up in SELECT * search but does show up when included in WHERE Clause

Hello and thank you in advance! I have a SQL query that returns a list of customers for a course ID where the status is 'active'. I noticed the total count was incorrect and that there were a few ...
Haley's user avatar
  • 13
0 votes
0 answers
38 views

Multiple Select with duplicate value | Antd Select Component

So I have Antd multiple Select component with this configuration: <Select fieldNames={{ label: 'name', value: 'id' }} mode="multiple" showSearch options={optionsData} /> My ...
gidgud's user avatar
  • 81
0 votes
2 answers
41 views

Oracle SQL function using Select Count returns duplicate answer for every row

Trying to do a simple User function where I get the number of people whos age is > 100. this is my current table select * from peoples **NAME** **AGE** ---------------------- Joe Bloggs 12 ...
Rhys Miller's user avatar
-1 votes
1 answer
42 views

Return the count of data saved in a column and displayed in two different columns

I have a table in which a column contains two variables and I want to return the count of each of them in two columns name type A outgoing B incoming B incoming B outgoing C incoming B incoming ...
Vicky_Smaith's user avatar
1 vote
1 answer
25 views

Extracting summary from selected records as a division of values

Input table is like this: Year Region ID Value 2021 Asia 01 15 2021 Europe 02 35 2021 Asia 03 45 2022 Europe 04 49 I'm selecting entries by the year, region and id: SELECT year, region, ...
code_beginner's user avatar
-3 votes
2 answers
43 views

Select only numeric and ";"

I have a sample dataset in a table. I want to make changes while selecting in this data set. How can I do it? Example table: ID VAL 1 1.abc; 2.bcd; 3.a-sd; 4.fhg 2 5.bsfacd; 3.afgh-sd; 4.fvbnbhg The ...
fbdev1907's user avatar
0 votes
1 answer
41 views

How do I calculate the difference in time between a start time of a shift and an end time from the previous day?

I need to calculate the amount of hours an employee rested between shifts. In our database we store Timesheets (LogData) and Jobs(BookingSessions). I need to find the earliest time an employee started ...
William Sewell's user avatar
-2 votes
2 answers
93 views

Cannot find either column "dbo" or the user-defined function [closed]

I create following function CREATE OR ALTER FUNCTION dbo.fn_test_Select (@mat varchar) RETURNS TABLE AS RETURN SELECT * from zMatnrJson where matnr = @mat but execution of SELECT dbo....
Guillaume D's user avatar
-1 votes
0 answers
9 views

Antd select tag multiplexing the option when adding a new option

enter image description here enter image description here When I want to add a new option, the option I added is multiplexed. The related value value is being added to the form, but the object does ...
alfa kemp's user avatar
0 votes
1 answer
22 views

How to make a selection from a dropdown using Python Selenium 4.1 if the dropdown is not a Select element

I am trying to do some automation for a work system where we need to close tickets that has been completed by a Tech. The website does make use of Shadow Dom (User-agent) code, but I have disabled ...
ConleyM's user avatar
0 votes
1 answer
23 views

vue.js select not displaying options

I have a vue.js modal that has a select input field as follows. <div class="form-group"> <label for="client_platform">Client Platform:</label&...
Mike Oliver's user avatar
0 votes
1 answer
27 views

Is there any v-select prop I can use to fix this?

At first, everything works fine until I search my option and clicking it. This is my v-select code: `<v-select class="vselect" v-model="filtro.orgao_origem_id" id=&...
Flavio Oliveira Neto's user avatar
0 votes
3 answers
43 views

How to perform this average count per hour calculation in SQL?

A simplified version of my table looks like this: id hour 1 3 1 3 1 3 1 4 2 12 2 12 2 14 The hour column means 3am, 4am, 12pm etc. What I'd like to be able to do (working in Amazon Athena) is ...
Ted's user avatar
  • 1,199
0 votes
1 answer
30 views

Mongoose query with multiple $or condition and array as parameter

I'm making the followed/following rules to simulate a blog/social like app, but I want to suggest to to the users only people that are not following or followed by this user, but any combination haven'...
Developer's user avatar
0 votes
2 answers
257 views

Shadcn Select is having issue with dynamically generated SelectItem

I am having an issue with Shadcn react library's Select component. It seems that "dynamically" generated SelectItem is causing an issue were they are not displayed in the SelectValue box ...
Yousi's user avatar
  • 831
-3 votes
0 answers
18 views

Data Not Being Pulled from MySQL Database Due to Failed Query [duplicate]

I am working on a project that needs to pull data from a MySQL database using PHP. I have begun coding it and I have no syntax errors. The problem arises when I load the page. I am receiving "...
Matt Croft's user avatar

1
2 3 4 5
770